//
//  AVCamPhotoCaptureDelegate.h
//  CaptureDemo
//
//  Created by 苏沫离 on 2018/9/19.
//  Copyright © 2018年 苏沫离. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

API_AVAILABLE(ios(10.2))
@interface AVCamPhotoCaptureDelegate : NSObject<AVCapturePhotoCaptureDelegate>

/* 参数requestedPhotoSettings：拍摄照片的一些设置
 * 参数willCapturePhotoAnimation：即将拍摄照片的回调
 * 参数livePhotoCaptureHandler：开始拍摄动态照片，回调为YES ；结束拍摄动态照片，回调为 NO 。
 * 参数completionHandler：完成拍摄的回调
 */
- (instancetype)initWithRequestedPhotoSettings:(AVCapturePhotoSettings *)requestedPhotoSettings willCapturePhotoAnimation:(void (^)(void))willCapturePhotoAnimation livePhotoCaptureHandler:(void (^)( BOOL capturing ))livePhotoCaptureHandler completionHandler:(void (^)( AVCamPhotoCaptureDelegate *photoCaptureDelegate ))completionHandler;

//点击拍摄时的一些配置
@property (nonatomic, readonly) AVCapturePhotoSettings *requestedPhotoSettings;

@end

/*
 
 
 
 AVCapturePhotoCaptureDelegate --> AVCaptureResolvedPhotoSettings
 AVCapturePhotoCaptureDelegate --> AVCapturePhoto
 
 
 
 [AVCapturePhotoBracketSettings](https://developer.apple.com/documentation/avfoundation/avcapturephotobracketsettings?changes=latest_minor&language=objc) 
 
 

 
 
 */
